<%@ page import="net.zjitc.domain.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/9/29
  Time: 21:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>成功</title>
</head>
<body>
<body>
<%
    HttpSession session1=request.getSession();
    User user=(User) session1.getAttribute("user");
    String username="";
    if(user!=null)
    {
        username=user.getUsername();
    }else
    {
        request.setAttribute("msg","请先登录");
        request.getRequestDispatcher("/login.jsp").forward(request,response);
        return;
    }
%>
<h1>欢迎 <font color="red"><%=username%></font>访问<a href="/Web/loginoutServlet">退出</a></h1>
</body>
</body>
</html>
